package com.grad.webstudy.vo;

import java.io.Serializable;

/**
 * @Description:
 * @Author: zjf
 * @Date: 2020/2/12 18:16.
 */
public class CourseDetailVo implements Serializable {

    private Integer id;

    private Integer detailId;

    private Integer chapterId;

    private String name;

    private String label;

    private Integer sequence;

    private String videoPath;

    private String videoLength;

    private Integer progress;


    @Override
    public String toString() {
        return "CourseDetailVo{" +
                "id=" + id +
                ", detailId=" + detailId +
                ", chapterId=" + chapterId +
                ", name='" + name + '\'' +
                ", label='" + label + '\'' +
                ", sequence=" + sequence +
                ", videoPath='" + videoPath + '\'' +
                ", videoLength='" + videoLength + '\'' +
                ", progress=" + progress +
                '}';
    }

    public CourseDetailVo() {

    }

    public CourseDetailVo(Builder builder) {
        this.id = builder.id;
        this.detailId = builder.detailId;
        this.chapterId = builder.chapterId;
        this.name = builder.name;
        this.label=builder.label;
        this.sequence = builder.sequence;
        this.videoPath = builder.videoPath;
        this.videoLength = builder.videoLength;
        this.progress = builder.progress;
    }

    public Integer getDetailId() {
        return detailId;
    }

    public void setDetailId(Integer detailId) {
        this.detailId = detailId;
    }

    public String getLabel() {
        return label;
    }

    public void setLabel(String label) {
        this.label = label;
    }

    public Integer getSequence() {
        return sequence;
    }

    public void setSequence(Integer sequence) {
        this.sequence = sequence;
    }

    public String getVideoPath() {
        return videoPath;
    }

    public void setVideoPath(String videoPath) {
        this.videoPath = videoPath;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getChapterId() {
        return chapterId;
    }

    public void setChapterId(Integer chapterId) {
        this.chapterId = chapterId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getVideoLength() {
        return videoLength;
    }

    public void setVideoLength(String videoLength) {
        this.videoLength = videoLength;
    }

    public Integer getProgress() {
        return progress;
    }

    public void setProgress(Integer progress) {
        this.progress = progress;
    }

    public static class Builder {

        private Integer id;

        private Integer detailId;

        private Integer chapterId;

        private String name;

        public String label;

        private Integer sequence;

        private String videoPath;

        private String videoLength;

        private Integer progress;

        public Builder setProgress(Integer progress) {
            this.progress = progress;
            return this;
        }

        public Builder setDetailId(Integer detailId) {
            this.detailId = detailId;
            return this;
        }

        public Builder setLabel(String label) {
            this.label = label;
            return this;
        }

        public Builder setSequence(Integer sequence) {
            this.sequence = sequence;
            return this;
        }

        public Builder setVideoPath(String videoPath) {
            this.videoPath = videoPath;
            return this;
        }

        public Builder setId(Integer id) {
            this.id = id;
            return this;
        }

        public Builder setChapterId(Integer chapterId) {
            this.chapterId = chapterId;
            return this;
        }

        public Builder setName(String name) {
            this.name = name;
            return this;
        }

        public Builder setVideoLength(String videoLength) {
            this.videoLength = videoLength;
            return this;
        }

        public CourseDetailVo build() {
            return new CourseDetailVo(this);
        }
    }
}
